import * as types from '../../../constants';

export const state = {
    list: []
};

export const mutations = {
    [types.INITLIST](state, action) {
        const list = action.data.result;
        /**
         * 注意内存地址的改变；
        */
        // state.list = Object.assign({}, state.list, {list});
        state.list = list;
    }
}